
const {mysql} = require('../qcloud')

module.exports = async(ctx)=>{
  const tops = await mysql('books')
                    .select('id','title','image','count')
                    .limit(9)
                    .orderBy('count','desc')
  ctx.state.data = {
    list:tops
  }
}


